﻿using System;

namespace Rauchy.Oapt
{
    public static class AssertOne
    {
		#region Fields (2) 

        internal static int Current;
        internal static int WhatToRun;

		#endregion Fields 

		#region Methods (2) 

		// Public Methods (2) 

        public static void From(Action assert)
        {
            if (Current == WhatToRun)
            {
                assert.Invoke();
            }
            Current++;
        }

        public static void From(params Action[] asserts)
        {
            foreach (var assert in asserts)
            {
                From(assert);
            }
        }

		#endregion Methods 
    }
}